/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tp_logDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression l_id;
	public final StringExpression l_hora;
	public final StringExpression l_parametros;
	public final StringExpression l_resultado;
	public final DoubleExpression l_tiempo_de_calculo;
	public final StringExpression l_metodo_con;
	
	public Tp_logDetachedCriteria() {
		super(orm.Tp_log.class, orm.Tp_logCriteria.class);
		l_id = new IntegerExpression("l_id", this.getDetachedCriteria());
		l_hora = new StringExpression("l_hora", this.getDetachedCriteria());
		l_parametros = new StringExpression("l_parametros", this.getDetachedCriteria());
		l_resultado = new StringExpression("l_resultado", this.getDetachedCriteria());
		l_tiempo_de_calculo = new DoubleExpression("l_tiempo_de_calculo", this.getDetachedCriteria());
		l_metodo_con = new StringExpression("l_metodo_con", this.getDetachedCriteria());
	}
	
	public Tp_logDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tp_logCriteria.class);
		l_id = new IntegerExpression("l_id", this.getDetachedCriteria());
		l_hora = new StringExpression("l_hora", this.getDetachedCriteria());
		l_parametros = new StringExpression("l_parametros", this.getDetachedCriteria());
		l_resultado = new StringExpression("l_resultado", this.getDetachedCriteria());
		l_tiempo_de_calculo = new DoubleExpression("l_tiempo_de_calculo", this.getDetachedCriteria());
		l_metodo_con = new StringExpression("l_metodo_con", this.getDetachedCriteria());
	}
	
	public Tp_log uniqueTp_log(PersistentSession session) {
		return (Tp_log) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tp_log[] listTp_log(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tp_log[]) list.toArray(new Tp_log[list.size()]);
	}
}

